

package cn.shengchao.examstar.distribute.infrastrure.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName(value = "distribute_order_task")
public class DistributeOrderTask {
    /**
     * 自增编码
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单id
     */
    @TableField(value = "order_id")
    private Long orderId;
    /**
     * 订单产品类型，COURSE,PRODUCT_MEMBER,COURSE_NODES
     */
    @TableField(value = "product_type")
    private String productType;

    /**
     * 分销金额
     */
    @TableField(value = "distribute_order_amount")
    private BigDecimal distributeOrderAmount;

    /**
     * 推广关系数量(0是没有）
     */
    @TableField(value = "sale_distribute_num")
    private Integer saleDistributeNum;
    /**
     * 内容配置数量(0是没有）
     */
    @TableField(value = "content_distribute_num")
    private Integer contentDistributeNum;
    /**
     * 内容分销金额
     */
    @TableField(value = "distribute_content_amount")
    private BigDecimal distributeContentAmount;
    /**
     * 销售分销金额
     */
    @TableField(value = "distribute_sale_amount")
    private BigDecimal distributeSaleAmount;

    /**
     * 支付用户
     */
    @TableField(value = "pay_user_id")
    private Long payUserId;

    /**
     * 销售来源用户
     */
    @TableField(value = "source_sale_user_id")
    private Long sourceSaleUserId;

    /**
     * 订单时间
     */
    @TableField(value = "order_time")
    private Date orderTime;

    /**
     * 分销时间
     */
    @TableField(value = "distribute_time")
    private Date distributeTime;

    /**
     * 结算时间
     */
    @TableField(value = "balance_time")
    private Date balanceTime;
    @TableField(value = "last_task_time")
    private Date lastTaskTime;
    /**
     * 数据状态 0未分配 1分配中 2已分配 3已结算 9退款
     */
    @TableField(value = "data_status")
    private Integer dataStatus;

    @TableField(value = "create_user")
    private Long createUser;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "update_user")
    private Long updateUser;

    @TableField(value = "update_time")
    private Date updateTime;
}